﻿package plugin.emailui
{
    import com.core.*;
    import com.sh.game.consts.*;
    import com.sh.game.global.*;
    import plugin.emailui.contorl.*;
    import view.*;

    public class Email extends FlashUIBase
    {
        private var _ui:EmailUIctrl;

        public function Email()
        {
            appendLoader(Config.getUrl("assets/images/mornui/common.swf", ResourceType.NORMAL));
            appendLoader(Config.getUrl("assets/images/mornui/email.swf", ResourceType.NORMAL));
            return;
        }// end function

        override protected function initGUI() : void
        {
            this._ui = new EmailUIctrl(this);
            mGUI = this._ui;
            return;
        }// end function

        override protected function openRefresh() : void
        {
            (mGUI as EmailUIctrl).openRefresh();
            ModelProxy.change("mainui", "closeemail", null);
            return;
        }// end function

        override protected function closeComplete() : void
        {
            super.closeComplete();
            this._ui.checkEmail();
            return;
        }// end function

    }
}
